﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DefeatEpidemic.Models
{
    public class Car
    {
        public Guid id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 车品牌
        /// </summary>
        [Display(Name = "汽车品牌")]
        public string brand { get; set; }
        [Display(Name = "汽车颜色")]
        public string color { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        [Display(Name = "车牌号")]
        public string number { get; set; }

        [Display(Name = "创建时间")]
        public DateTime created_at { get; set; } = DateTime.Now;
        [Display(Name = "更新时间")]
        public DateTime updated_at { get; set; } = DateTime.Now;

        public virtual Member member { get; set; }
    }
}
